import Router from 'koa-router';

import sysModel from './src/sys'
import flawModel from './src/flaw'
import goodsModel from './src/goods'
import dataModel from './src/data'



const router = new Router();
router.use('/api/sys', sysModel.routes(), sysModel.allowedMethods());
router.use('/api/flaw', flawModel.routes(), flawModel.allowedMethods());
router.use('/api/goods', goodsModel.routes(), goodsModel.allowedMethods());
router.use('/api/data', dataModel.routes(), dataModel.allowedMethods());

export default router;
